{%extends "link_base.html"%}
{%block link_body%}

<h3>Meta info</h3>
{%include "metainfo.html"%}

<h3>Description</h3>
{%if link.description%}
  <div id="link-description" style="margin-left:15px;">
    <pre>{{link.description|wordwrap:80|urlizetrunc:80}}</pre>
  </div>
{%else%}
(None)
{%endif%}

<h3>Tags</h3>
<div id="link-tags" style="margin-left:15px;">
{%if link.tags%}
{%for tag in link.tags%}<a href="{%url app.views.search%}?tags={{tag}}">{{tag}}</a><br>{%endfor%}
{%else%}
(None)
{%endif%}
</div>

<h3>Attributes</h3>
<div id="link-attributes" style="margin-left:15px;">
{%if attributes%}
<table class="link-attributes">
{%for key, value in attributes.items%}<tr id="attribute"><td>{{key}}</td><td>{{value}}</td></tr>
{%endfor%}
</table>
{%else%}
(None)
{%endif%}
</div>

<h3>Comments</h3>
<div id="link-comments" style="margin-left:15px;">
{%if link.comments%}
{%for comment in link.comments%}<div>{{comment}}</div>{%endfor%}
{%else%}
(None)
{%endif%}
</div>

{%endblock%}
